<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript"src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("img").click(function(){
$("img").addClass("show");
});
});

</script>
<style type="text/css">
.show{
border: 1px solid;
}
</style>
</head>
<body>
<img src="images/pic1.gif" width="500"height="500">
</body>
</html>